<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.2/animate.min.css">
    <title>Document</title>
    <style>
        .box{
            border: 1px solid #dddddd;
            width: 300px;
            height: 500px;
            background: cornflowerblue;
            box-shadow: 1px 2px 19px 13px #e4e4e4;
        }
    </style>
</head>
<body>
    <div class="box" id='box'>

    </div>
<button id='add'>试一下</button>

  <script>
    const btn = document.getElementById('add')
   const box = document.getElementById('box')
  
    btn.addEventListener('click',()=>{
        box.className+=' rubberBand animated';
        
        setTimeout(()=>{
            
            box.classList.remove('rubberBand')
            box.classList.remove('animated')
            console.log('box',box.classList);
        },1000)
    })
   
  </script>
</body>
</html>


